class Solution(object):
    def countVowelSubstrings(self, word):
        def convert(s):
            t = set(s)
            return t == {'a', 'e', 'i', 'o', 'u'}
        n = len(word)
        ans = 0
        for i in range(n):
            for j in range(i + 4, n):
                if convert(word[i: j + 1]):
                    ans += 1
        return ans

